package com.project.internship.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.internship.entity.Bases;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.internship.vo.BasesDeptVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2020-04-07
 */
public interface BasesService extends IService<Bases> {

    IPage<BasesDeptVO> getAllBases(Page<BasesDeptVO> page,String keyword);

    Integer addBase(Bases base);

    Integer updateBase(Bases base);

    Integer deleteBase(Long id);

    Integer deleteBases(Long[] ids);

    /**
     * 学院端查询基地信息
     * @param page
     * @param keyword
     * @return
     */
    IPage<Bases> getAllOwnBases(Page<Bases> page, String keyword);

    List<Bases> getNonAllotBases();

    IPage<Bases> getAllotBases(Page<Bases> page, String keyword);

    List<BasesDeptVO> getBaseSelf();

    Integer updateBaseInfo(BasesDeptVO basesDeptVO);
}
